package timing.ukulele.portal.client.callback;

import timing.ukulele.common.ResponseResult;
import timing.ukulele.common.flow.FlowData;
import timing.ukulele.portal.client.FlowClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Slf4j
public class FlowClientCallback implements FlowClient {
    private final String tips = "流程服务调用失败";
    @Override
    public ResponseResult<List<FlowData>> getBySystemId(Long systemId) {
        log.error(tips);
        return ResponseResult.rpcError(tips);
    }
}
